package com.rc.saas.mini.service.discount;

import com.rc.saas.mini.mapper.discount.TenantDiscountTimeMapper;
import com.rc.saas.mini.search.TenantDiscountSearch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangzhengwei
 * @create 2021/4/20
 */
@Service
public class TenantDiscountTimeServiceImpl implements TenantDiscountTimeService {

    @Autowired
    private TenantDiscountTimeMapper tenantDiscountTimeMapper;

    @Override
    public TenantDiscountTimeMapper getMapper() {
        return tenantDiscountTimeMapper;
    }

    @Override
    public List<TenantDiscountSearch> listEnterpriseDiscountBySearch(TenantDiscountSearch tenantDiscountSearch) {
        return tenantDiscountTimeMapper.listEnterpriseDiscountBySearch(tenantDiscountSearch);
    }

    @Override
    public List<TenantDiscountSearch> listDiscountStationBySearchNotEnt(TenantDiscountSearch tenantDiscountSearch) {
        return tenantDiscountTimeMapper.listDiscountStationBySearchNotEnt(tenantDiscountSearch);
    }

    @Override
    public List<TenantDiscountSearch> listDiscountStationAllBySearchNotEnt(TenantDiscountSearch tenantDiscountSearch) {
        return tenantDiscountTimeMapper.listDiscountStationAllBySearchNotEnt(tenantDiscountSearch);
    }

    @Override
    public List<TenantDiscountSearch> listEnterpriseDiscountAllBySearch(TenantDiscountSearch tenantDiscountSearch) {
        return tenantDiscountTimeMapper.listEnterpriseDiscountAllBySearch(tenantDiscountSearch);
    }

}
